package com.mlz.mlzmall.ui.activity.act.personal;

import android.os.Bundle;
import android.view.View;
import android.webkit.WebView;

import com.mlz.mlzmall.R;
import com.mlz.mlzmall.ui.activity.act.base.TopTitleView;
import com.mlz.mlzmall.ui.activity.act.personal.NetworkRequest.VolleyBaseActivity;
import com.mlz.mlzmall.ui.utils.mlz.ConfigInfo;

/**
 *
 * Created by Administrator on 2016/5/19.
 */
public class ServiceCenterActivity extends VolleyBaseActivity {

    private WebView wb_customer_service;//客服中心

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.service_center);//客服对话界面
        setViewContent();
        wb_customer_service = (WebView) findViewById(R.id.wb_customer_service);

        wb_customer_service.getSettings().setJavaScriptEnabled(true);//webview的适配
        wb_customer_service.loadUrl("http://chat16.live800.com/live800/chatClient/chatbox.jsp?plg_nld=1&companyID=541100&plg_uin=1&plg_auth=1&plg_usr=1&plg_dev=1&plg_nld=1&jid=9437459191&configID=85711&plg_vkey=1");

    }
    private void setViewContent() {
        TopTitleView loginTopTitle = (TopTitleView) findViewById(R.id.device_manager_title);
        loginTopTitle.setLeftButtonContent(null, R.mipmap.pic_2_1_btn_back, null);
        loginTopTitle.setTitleButtonContent("客服中心", null, null);
        loginTopTitle.setOnLeftButtonClickListener(new TopTitleView.OnLeftButtonClickListener() {
            @Override
            public void onLeftBtnClick(View button) {
                finish();
                ServiceCenterActivity.this.overridePendingTransition(R.anim.right_in,R.anim.right_out);
            }
        });
    }

}
